/* 基金基本页  */
// import { useInterval } from 'ahooks';
import { useState,useEffect } from 'react';
import { Button } from 'antd';

export default function Fund00(props) {
  const [count, setCount] = useState(0);

  // 相当于 componentDidMount 和 componentDidUpdate:
  useEffect(() => {
    console.log(11,props);
    document.title = `You clicked ${count} times`;
  });

  return (
    <div>
      <div>{count}</div>
      {/* <div>{this.state.count}</div> */}
      <Button type="primary" onClick={() => setCount(count + 1) }>+1</Button>
      <Button type="primary" onClick={() => setCount(count - 1) }>-1</Button>
    </div>
  );
}
